<?php

namespace common\models\member;

use Yii;

/**
 * This is the model class for table "{{%member_audit_log}}".
 *
 * @property int $id
 * @property int $member_id 会员ID
 * @property int $user_id 用户ID
 * @property int $auditer_id 审核人ID
 * @property string $mark 审核备注
 * @property int $status 审核操作状态
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class MemberAuditLog extends \common\db\ActiveRecord {

    CONST STATUS_ACTIVE = 10;
    CONST STATUS_DEFAULT = 0;

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%member_audit_log}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['member_id', 'user_id', 'auditer_id', 'status', 'created_at', 'updated_at'], 'integer'],
            [['mark'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'member_id' => '会员ID',
            'user_id' => '用户ID',
            'auditer_id' => '审核人ID',
            'mark' => '审核备注',
            'status' => '审核操作状态',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }

}
